import 'package:flutter/material.dart';
import 'package:jdapp/provider/Cart.dart';
import 'config/jj_routers.dart';
import 'package:provider/provider.dart';
import './provider/Counter.dart';
import 'jj_home_tabs.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MultiProvider(
        providers: [
          ChangeNotifierProvider(create: (context) => Counter()),
          ChangeNotifierProvider(create: (context) => Cart()),
        ],
        child: MaterialApp(
          initialRoute: '/',
          onGenerateRoute: onGenerateRoute,
          debugShowCheckedModeBanner: false,
          theme: ThemeData(
              // primaryColor: Colors.yellow
              primaryColor: Colors.white),
        ));
    
  }
}
